﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Runda.EShop.Common.Entity;
using Runda.EShop.Bll;

namespace Runda.EShop.Web.Service
{
    public partial class ShopcartService : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.ContentType = "text/plain"; 
            MasterDataBll bll = new MasterDataBll();
            int count = bll.Count<BizShopCartEntity>(" and ProductID='" + Request["ProductID"] + "' and CustomerID='" + base.User.Identity.LoginUser.UserID + "'");

            Response.Write(count);
            Response.End();
        }
    }
}